CSCI E-92: Application Note 3 Using formatted input and output stdio functions (including printf, snprintf, ----------------------------------------------------------------------------- scanf, sscanf) with 64-bit (i.e., long long) or floating-point values --------------------------------------------------------------------- Using default project settings, it is to not be possible to print out the value of a 64-bit variable (such as one declared as a uint64_t or long long int) or any floating point variables using printf. Because of this issue, for "long long" variables a workaround is to print out the high-order 32-bits and then the low-order 32-bits separately. You'll have to do some operations in your head after you see the printed values in order to recreate the value of the 64-bt value. So, for example, if the variable you want to print is declared as uint64_t val; You could derive just the high-order 32-bits via val>>32 And you could derive just the low-order 32-bits via val&0xffffffff Those two 32-bit values could be printed out via printf as either hexadecimal or decimal numbers. At the expense of having a larger code (text) segment for your project, you can change the project settings as follows to support formatted output of "long long" (i.e., 64-bit integers). In CodeWarrior, open Project -> Properties. On the left of the Properties window, select "C/C++ Build" -> "Settings." In the "Settings" pane on the right, select "Librarian." To the right, the "Print formats" can be changed from "int" -- which is the default -- to "int_LL" -- for int and "long long" support for formatted output. Similarly, the options for "Print formats" can be changed to allow formatted output of floating point numbers. All the "Print formats" options are: int no support for "long long" or floating-point int_FP Floating-point is supported int_LL "long long" is supported int_LL_FP Both "long long" and floating-point are supported The same options are available to allow formatted input of "long long" or floating-point numbers under the "Scan formats" menu.